﻿#ifndef CMDLINECHARTDIALOGINTERPOLATION_H
#define CMDLINECHARTDIALOGINTERPOLATION_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartDialogInterpolation : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartDialogInterpolation();
            ~CmdLineChartDialogInterpolation();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(int number, int type) { 
                m_number = number;
                m_type = type;
            }

        private:
            int m_number{};
            int m_type{};
    };

} // namespace PostCommand

#endif
